<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>用户</title>
    <link rel="stylesheet" href="/Public/Leader/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="/Public/Leader/css/index.css" />
    <style type="text/css">
        .order-list a {
            position: relative;
        }
        .order-list span {
            float: right;
            margin-right: 20px;
        }
        .nav-container .item{
            display:none;
        }
        .nav-container .item.active,
        .nav-tabs .item.active{
            display:block;
        }
    </style>
</head>
<body>
<style>
    .pagination .current{
        float: left;
    padding: 0 14px;
    line-height: 38px;
    text-decoration: none; 
    border-left-width: 0;
    }
        
</style>
<div id="topbar" class="top-navigation dark-bg ">
            <nav class="navbar   dark-bg " role="navigation" style="width:85%;margin:auto;">
                <div class="navbar-header" style="width:200px;">
                    <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
                        <i class="fa fa-reorder"></i>
                    </button>
                    <a class="navbar-brand" href="<?php echo U('Index/index');?>">小易出行</a>
                </div>
                <div class="navbar-collapse collapse" id="navbar">
                    <ul class="nav navbar-nav dark-bg">
                        

                        <li <?php if($table == 'index'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Index/index');?>"> 首页</a>
                        </li>

                        <li <?php if($table == 'order'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Order/orderadmin');?>">订单管理</a>
                        </li>

                        <li <?php if($table == 'pay'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Pay/paycount');?>">交易中心</a>
                        </li>
                        <li <?php if($table == 'article'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Article/lst');?>">文章</a>
                        </li>
                        <li <?php if($table == 'wx'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Wx/wx_menu/wid/1');?>">微信管理</a>
                        </li>
                        <li <?php if($table == 'line'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Line/lineadmin');?>">线路管理</a>
                        </li>
                        <li <?php if($table == 'user'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('User/userinfo');?>">用户管理</a>
                        </li>
                        <li <?php if($table == 'useradmin'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Useradmin/userinfo');?>">系统管理</a>
                        </li>

                    </ul>
                    <ul class="nav navbar-top-links navbar-right">
                        <li class="dropdown">
                            <a aria-expanded="false" role="button" href="#" class="dropdown-toggle" data-toggle="dropdown" style="position:relative;" onclick="$(this).find('span').toggleClass('deg180')">
                                <name style="width: 80px;white-space:nowrap;overflow:hidden;text-overflow: ellipsis;display: block;text-align: center"><?php echo session('username');?></name>
                                <span class="caret" style="position: absolute;top: 22px;right: 12px;"></span></a>
                            <ul role="menu" class="dropdown-menu">
                                <li>
                                    <a onclick="return confirm('您确定要退出吗？')" tabindex="-1" href="<?php echo U('Login/Logout');?>">退出</a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </nav>
        </div>
<div class="wrapper main-wrapper wrapper-content ">
    <div class="page-menubar">
        <div class="menu-header">系统管理</div>
        <ul class="order-list">
            <li>
                <a href="<?php echo U('Useradmin/userinfo');?>">系统管理员</a>
            </li>
            <li >
                <a href="<?php echo U('Useradmin/Adduser');?>">添加用户</a>
            </li>
            <li class="active">
                <a href="<?php echo U('pay/paysetting');?>">系统设定</a>
            </li>
        </ul>
    </div>
    <!--主要内容-->
    <div class="page-content" style="display: block;">
        <!--内容标题-->

        <div class="panel panel-default" style="margin-top: 20px;">
            <div class="panel-body">
                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane active in" id="home">
                        <ul class="nav nav-tabs">
                            <li role="presentation" class="item active"><a href="#">网站信息</a></li>
                            <li role="presentation" class="item"><a href="#">平台基本信息</a></li>
                            <li role="presentation" class="item"><a href="#">平台运营规模</a></li>
                            <li role="presentation" class="item"><a href="#">平台支付信息</a></li>
                            <li role="presentation" class="item"><a href="#">公司经营许可信息</a></li>
                            <li role="presentation" class="item"><a href="#">平台服务机构</a></li>
                            <li role="presentation" class="item"><a href="#">运价信息</a></li>
                        </ul>
                        <div class="nav-container">
                            <!--司机的基本信息-->
                            <div class="item active">
                            <form id="tab" >
                                <div class="form-group">
                                    <label>appid：</label>
                                    <input type="text" value="<?php echo ($us["appid"]); ?>" name="appid" class="form-control">
                                    <label>appsecret：</label>
                                    <input type="hidden" value="<?php echo ($us["id"]); ?>" name="id" class="form-control">
                                    <input type="text" value="<?php echo ($us["appsecret"]); ?>" name="appsecret" class="form-control">
                                    <label>Encodingaeskey：</label>
                                    <input type="text" value="<?php echo ($us["encodingaeskey"]); ?>" name="encodingaeskey" class="form-control">
                                    <label>Token:</label>
                                    <input type="text" value="<?php echo ($us["token"]); ?>" name="token" class="form-control">
                                    <label>商户号：</label>
                                    <input type="text" value="<?php echo ($us["partnerid"]); ?>" name="partnerid" class="form-control">
                                    <label>商户秘钥：</label>
                                    <input type="text" value="<?php echo ($us["partnerkey"]); ?>" name="partnerkey" class="form-control">
                                    <label>商户名称：</label>
                                    <input type="text" value="<?php echo ($us["merchant"]); ?>" name="merchant" class="form-control">
                                    <label>线上服务费：(%)</label>
                                <input type="text" value="<?php echo ($us["tixianfeilv"]); ?>" name="tixianfeilv" class="form-control">

                                <label>线下服务费：(%)</label>
                                <input type="text" value="<?php echo ($us["offline"]); ?>" name="offline" class="form-control">

                                <label>服务费1：(%)</label>
                                <input type="text" value="<?php echo ($us["offline1"]); ?>" name="offline1" class="form-control">

                                <label>服务费2：(%)</label>
                                <input type="text" value="<?php echo ($us["offline2"]); ?>" name="offline2" class="form-control">

                                <label>服务费3：(%)</label>
                                <input type="text" value="<?php echo ($us["offline3"]); ?>" name="offline3" class="form-control">

                                    <label>下单通知人Openid：</label>
                                    <input type="text" value="<?php echo ($us["admin_openid"]); ?>" name="admin_openid" class="form-control">
                                    <label>下单通知模板：</label>
                                    <input type="text" value="<?php echo ($us["ordertemplate"]); ?>" name="ordertemplate" class="form-control">
                                    <label>客户通知模板：</label>
                                    <input type="text" value="<?php echo ($us["tztemplate"]); ?>" name="tztemplate" class="form-control">
                                    <label>支付通知模板：</label>
                                    <input type="text" value="<?php echo ($us["xdtemplate"]); ?>" name="xdtemplate" class="form-control">
                                    <br />
                                    <button  type="button" class="btn btn-primary" onclick="tj()">修改</button>
                                </div>
                            </form>
                            </div>


                            <div class="item">
                                <form id="tab1" >
                                    <div class="form-group">
                                        <label>公司标识：</label>
                                        <!--<input type="hidden" value="<?php echo ($config['id']); ?>" name="id" class="form-control">-->
                                        <input type="text" value="<?php echo ($config['companyid']); ?>" name="companyid" class="form-control">
                                        <label>公司名称：</label>
                                        <input type="text" value="<?php echo ($config['companyname']); ?>" name="companyname" class="form-control">
                                        <label>统一社会信用代码：</label>
                                        <input type="text" value="<?php echo ($config['identifier']); ?>" name="identifier" class="form-control">
                                        <label>注册地行政区划代码:</label>
                                        <input type="text" value="<?php echo ($config['address']); ?>" name="address" class="form-control">
                                        <label>经营范围：</label>
                                        <input type="text" value="<?php echo ($config['businessscope']); ?>" name="businessscope" class="form-control">
                                        <label>通信地址：</label>
                                        <input type="text" value="<?php echo ($config['contactaddress']); ?>" name="contactaddress" class="form-control">
                                        <label>经营业户经济类型：</label>
                                        <input type="text" value="<?php echo ($config['economictype']); ?>" name="economictype" class="form-control">
                                        <label>注册资本：</label>
                                        <input type="text" value="<?php echo ($config['regcapital']); ?>" name="regcapital" class="form-control">
                                        <label>法人代表姓名：</label>
                                        <input type="text" value="<?php echo ($config['legalname']); ?>" name="legalname" class="form-control">
                                        <label>法人代表身份证号：</label>
                                        <input type="text" value="<?php echo ($config['legalid']); ?>" name="legalid" class="form-control">
                                        <label>法人代表电话：</label>
                                        <input type="text" value="<?php echo ($config['legalphone']); ?>" name="legalphone" class="form-control">
                                        <label>法人代表身份证扫描件文件编号：</label>
                                        <input type="text" value="<?php echo ($config['legalphoto']); ?>" name="legalphoto" class="form-control">
                                        <label>状态：</label>
                                        <select name="state" >
                                            <option value="0" <?php if($config['state'] == '0' ): ?>selected="selected"<?php endif; ?>>正常</option>
                                            <option value="1" <?php if($config['state'] == '1' ): ?>selected="selected"<?php endif; ?>>禁用</option>
                                        </select>
                                        <br>
                                        <label>操作标识：</label>
                                        <select name="flag" >
                                            <option value="1" <?php if($config['flag'] == 1): ?>selected="selected"<?php endif; ?>>新增</option>
                                            <option value="2" <?php if($config['flag'] == 2): ?>selected="selected"<?php endif; ?>>更新</option>
                                            <option value="3" <?php if($config['flag'] == 3): ?>selected="selected"<?php endif; ?>>删除</option>
                                        </select>
                                        <br>
                                        <label>上次更新时间：</label>
                                        <input type="text" disabled="disabled" value="<?php echo ($config['updatetime']); ?>" name="updatetime" class="form-control">
                                        <br />
                                        <button  type="button" class="btn btn-primary" onclick="config()">修改</button>
                                    </div>
                                </form>
                            </div>


                            <div class="item">
                                <form id="tab2" >
                                    <div class="form-group">
                                        <label>公司标识：</label>
                                        <input type="text" value="<?php echo ($maintain["CompanyId"]); ?>" name="CompanyId" class="form-control">
                                        <label>平台注册网约车辆数：</label>
                                        <input type="text" value="<?php echo ($maintain["vehiclenum"]); ?>" name="vehiclenum" class="form-control">
                                        <label>平台注册车辆：</label>
                                        <input type="text" value="<?php echo ($maintain["drivernum"]); ?>" name="drivernum" class="form-control">
                                        <label>操作标识：</label>
                                        <select name="flag" >
                                            <option value="1" <?php if($maintain['flag'] == 1): ?>selected="selected"<?php endif; ?>>新增</option>
                                            <option value="2" <?php if($maintain['flag'] == 2): ?>selected="selected"<?php endif; ?>>更新</option>
                                            <option value="3" <?php if($maintain['flag'] == 3): ?>selected="selected"<?php endif; ?>>删除</option>
                                        </select>
                                        <br>
                                        <label>上次更新时间：</label>
                                        <input type="text" disabled="disabled" value="<?php echo ($maintain["updatetime"]); ?>" name="updatetime" class="form-control">
                                        <br />
                                        <button  type="button" class="btn btn-primary" onclick="maintain()">修改</button>
                                    </div>
                                </form>
                            </div>
                            <div class="item">
                                <form id="tab3" >
                                    <div class="form-group">
                                        <label>公司标识：</label>
                                        <!--<input type="hidden" value="<?php echo ($config['id']); ?>" name="id" class="form-control">-->
                                        <input type="text" value="<?php echo ($config['companyid']); ?>" name="companyid" class="form-control">
                                        <label>支付机构名称：</label>
                                        <input type="text" value="<?php echo ($payinfo['payname']); ?>" name="payname" class="form-control">
                                        <label>支付业务许可证编号：</label>
                                        <input type="text" value="<?php echo ($payinfo['payid']); ?>" name="payid" class="form-control">
                                        <label>支付业务类型:</label>
                                        <input type="text" value="<?php echo ($payinfo['paytype']); ?>" name="paytype" class="form-control">
                                        <label>业务覆盖范围：</label>
                                        <input type="text" value="<?php echo ($payinfo['payscope']); ?>" name="payscope" class="form-control">
                                        <label>备付金存管银行：</label>
                                        <input type="text" value="<?php echo ($payinfo['preparebank']); ?>" name="preparebank" class="form-control">
                                        <label>结算周期（天）：</label>
                                        <input type="text" value="<?php echo ($payinfo['countdate']); ?>" name="countdate" class="form-control" placeholder="7">
                                        <label>状态：</label>
                                        <select name="state" >
                                            <option value="0" <?php if($payinfo['state'] == '0' ): ?>selected="selected"<?php endif; ?>>正常</option>
                                            <option value="1" <?php if($payinfo['state'] == '1' ): ?>selected="selected"<?php endif; ?>>禁用</option>
                                        </select>
                                        <br>
                                        <label>操作标识：</label>
                                        <select name="flag" >
                                            <option value="1" <?php if($payinfo['flag'] == 1): ?>selected="selected"<?php endif; ?>>新增</option>
                                            <option value="2" <?php if($payinfo['flag'] == 2): ?>selected="selected"<?php endif; ?>>更新</option>
                                            <option value="3" <?php if($payinfo['flag'] == 3): ?>selected="selected"<?php endif; ?>>删除</option>
                                        </select>
                                        <br>
                                        <label>上次更新时间：</label>
                                        <input type="text" disabled="disabled" value="<?php echo ($payinfo['updatetime']); ?>" name="updatetime" class="form-control">
                                        <br />
                                        <button  type="button" class="btn btn-primary" onclick="payinfo()">修改</button>
                                    </div>
                                </form>
                            </div>
                            <div class="item">
                                <form id="tab4" >
                                    <div class="form-group">
                                        <label>公司标识：</label>
                                        <!--<input type="hidden" value="<?php echo ($config['id']); ?>" name="id" class="form-control">-->
                                        <input type="text" value="<?php echo ($config['companyid']); ?>" name="companyid" class="form-control">
                                        <label>网络预约出租汽车经营许可证号：</label>
                                        <input type="text" value="<?php echo ($buslicense['certificate']); ?>" name="certificate" class="form-control">
                                        <label>经营区域：</label>
                                        <input type="text" value="<?php echo ($buslicense['oprationarea']); ?>" name="oprationarea" class="form-control">
                                        <label>公司名称:</label>
                                        <input type="text" value="<?php echo ($buslicense['ownername']); ?>" name="ownername" class="form-control">
                                        <label>发证机构名称：</label>
                                        <input type="text" value="<?php echo ($buslicense['organization']); ?>" name="organization" class="form-control">
                                        <label>有效期起：</label>
                                        <input type="date" value="<?php echo ($buslicense['startdate']); ?>" name="startdate" class="form-control" placeholder="<?php echo (date('Ymd',(isset($buslicense['updatetiem']) && ($buslicense['updatetiem'] !== ""))?($buslicense['updatetiem']):time())); ?>">
                                        <label>有效期止：</label>
                                        <input type="date" value="<?php echo ($buslicense['stopdate']); ?>" name="stopdate" class="form-control" placeholder="<?php echo (date('Ymd',(isset($buslicense['updatetiem']) && ($buslicense['updatetiem'] !== ""))?($buslicense['updatetiem']):time())); ?>">
                                        <label>初次发证日期：</label>
                                        <input type="date" value="<?php echo ($buslicense['certifydate']); ?>" name="certifydate" class="form-control" placeholder="<?php echo (date('Ymd',(isset($buslicense['updatetiem']) && ($buslicense['updatetiem'] !== ""))?($buslicense['updatetiem']):time())); ?>">
                                        <label>状态：</label>
                                        <select name="state" >
                                            <option value="0" <?php if($buslicense['state'] == '0' ): ?>selected="selected"<?php endif; ?>>正常</option>
                                            <option value="1" <?php if($buslicense['state'] == '1' ): ?>selected="selected"<?php endif; ?>>禁用</option>
                                        </select>
                                        <br>
                                        <label>操作标识：</label>
                                        <select name="flag" >
                                            <option value="1" <?php if($buslicense['flag'] == 1): ?>selected="selected"<?php endif; ?>>新增</option>
                                            <option value="2" <?php if($buslicense['flag'] == 2): ?>selected="selected"<?php endif; ?>>更新</option>
                                            <option value="3" <?php if($buslicense['flag'] == 3): ?>selected="selected"<?php endif; ?>>删除</option>
                                        </select>
                                        <br>
                                        <label>上次更新时间：</label>
                                        <input type="text" disabled="disabled" value="<?php echo ($buslicense['updatetime']); ?>" name="updatetime" class="form-control" >
                                        <br />
                                        <button  type="button" class="btn btn-primary" onclick="buslicense()">修改</button>
                                    </div>
                                </form>
                            </div>
                            <div class="item">
                                <form id="tab5" >
                                    <div class="form-group">
                                        <label>公司标识：</label>
                                        <!--<input type="hidden" value="<?php echo ($config['id']); ?>" name="id" class="form-control">-->
                                        <input type="text" value="<?php echo ($config['companyid']); ?>" name="companyid" class="form-control">
                                        <label>服务机构名称：</label>
                                        <input type="text" value="<?php echo ($seragency['servicename']); ?>" name="servicename" class="form-control">
                                        <label>服务机构代码：</label>
                                        <input type="text" value="<?php echo ($seragency['serviceno']); ?>" name="serviceno" class="form-control">
                                        <label>服务机构地址:</label>
                                        <input type="text" value="<?php echo ($seragency['detailaddress']); ?>" name="detailaddress" class="form-control">
                                        <label>机构负责人姓名：</label>
                                        <input type="text" value="<?php echo ($seragency['responsiblename']); ?>" name="responsiblename" class="form-control">
                                        <label>机构负责人电话：</label>
                                        <input type="text" value="<?php echo ($seragency['responsiblephone']); ?>" name="responsiblephone" class="form-control">
                                        <label>机构管理人姓名：</label>
                                        <input type="text" value="<?php echo ($seragency['managername']); ?>" name="managername" class="form-control">
                                        <label>机构管理人电话：</label>
                                        <input type="text" value="<?php echo ($seragency['managerphone']); ?>" name="managerphone" class="form-control">
                                        <label>机构紧急联系人电话：</label>
                                        <input type="text" value="<?php echo ($seragency['contactphone']); ?>" name="contactphone" class="form-control">
                                        <label>行政文书送达邮寄地址：</label>
                                        <input type="text" value="<?php echo ($seragency['mailaddress']); ?>" name="mailaddress" class="form-control">
                                        <label>服务机构设立日期：</label>
                                        <input type="date" value="<?php echo ($seragency['createdate']); ?>" name="createdate" class="form-control" placeholder="<?php echo (date('Ymd',(isset($buslicense['updatetiem']) && ($buslicense['updatetiem'] !== ""))?($buslicense['updatetiem']):time())); ?>">
                                        <label>状态：</label>
                                        <select name="state" >
                                            <option value="0" <?php if($seragency['state'] == '0' ): ?>selected="selected"<?php endif; ?>>正常</option>
                                            <option value="1" <?php if($seragency['state'] == '1' ): ?>selected="selected"<?php endif; ?>>禁用</option>
                                        </select>
                                        <br>
                                        <label>操作标识：</label>
                                        <select name="flag" >
                                            <option value="1" <?php if($seragency['flag'] == 1): ?>selected="selected"<?php endif; ?>>新增</option>
                                            <option value="2" <?php if($seragency['flag'] == 2): ?>selected="selected"<?php endif; ?>>更新</option>
                                            <option value="3" <?php if($seragency['flag'] == 3): ?>selected="selected"<?php endif; ?>>删除</option>
                                        </select>
                                        <br>
                                        <label>上次更新时间：</label>
                                        <input type="text" disabled="disabled" value="<?php echo ($seragency['updatetime']); ?>" name="updatetime" class="form-control">
                                        <br />
                                        <button  type="button" class="btn btn-primary" onclick="seragency()">修改</button>
                                    </div>
                                </form>
                            </div>
                            <div class="item">
                                <form id="tab6" >
                                    <div class="form-group">
                                        <label>公司标识：</label>
                                        <!--<input type="hidden" value="<?php echo ($config['id']); ?>" name="id" class="form-control">-->
                                        <input type="text" value="<?php echo ($config['companyid']); ?>" name="companyid" class="form-control">
                                        <label>运价类型编码：</label>
                                        <input type="text" value="<?php echo ($fare['faretype']); ?>" name="faretype" class="form-control">
                                        <label>运价类型说明：</label>
                                        <input type="text" value="<?php echo ($fare['faretypenote']); ?>" name="faretypenote" class="form-control">

                                        <label>运价有效期起:</label>
                                        <input type="date" value="<?php echo ($fare['farevalidon']); ?>" name="farevalidon" class="form-control" placeholder="<?php echo (date('Ymd',(isset($buslicense['updatetiem']) && ($buslicense['updatetiem'] !== ""))?($buslicense['updatetiem']):time())); ?>">
                                        <label>运价有效期止：</label>
                                        <input type="date" value="<?php echo ($fare['farevalidoff']); ?>" name="farevalidoff" class="form-control" placeholder="<?php echo (date('Ymd',(isset($buslicense['updatetiem']) && ($buslicense['updatetiem'] !== ""))?($buslicense['updatetiem']):time())); ?>">

                                        <label>起步价：</label>
                                        <input type="text" value="<?php echo ($fare['startfare']); ?>" name="startfare" class="form-control">
                                        <label>起步里程：</label>
                                        <input type="text" value="<?php echo ($fare['startmile']); ?>" name="startmile" class="form-control">
                                        <label>计程单价（按公里）：</label>
                                        <input type="text" value="<?php echo ($fare['unitpricepermile']); ?>" name="unitpricepermile" class="form-control">
                                        <label>计程单价（按分钟）：</label>
                                        <input type="text" value="<?php echo ($fare['unitpriceperminute']); ?>" name="unitpriceperminute" class="form-control">
                                        <label>单程加价单价：</label>
                                        <input type="text" value="<?php echo ($fare['upprice']); ?>" name="upprice" class="form-control">
                                        <label>单程加价公里：</label>
                                        <input type="text" value="<?php echo ($fare['uppricestartmile']); ?>" name="uppricestartmile" class="form-control">
                                        <label>营运早高峰时间起：</label>
                                        <input type="text" value="<?php echo ($fare['morningpeaktimeon']); ?>" name="morningpeaktimeon" class="form-control" placeholder="<?php echo (date('Ymd',(isset($buslicense['updatetiem']) && ($buslicense['updatetiem'] !== ""))?($buslicense['updatetiem']):time())); ?>">
                                        <label>营运早高峰时间止：</label>
                                        <input type="text" value="<?php echo ($fare['morningpeaktimeoff']); ?>" name="morningpeaktimeoff" class="form-control" placeholder="<?php echo (date('Ymd',(isset($buslicense['updatetiem']) && ($buslicense['updatetiem'] !== ""))?($buslicense['updatetiem']):time())); ?>">
                                        <label>营运晚高峰时间起：</label>
                                        <input type="text" value="<?php echo ($fare['eveningpeaktimeon']); ?>" name="eveningpeaktimeon" class="form-control" placeholder="<?php echo (date('Ymd',(isset($buslicense['updatetiem']) && ($buslicense['updatetiem'] !== ""))?($buslicense['updatetiem']):time())); ?>">
                                        <label>营运晚高峰时间止：</label>
                                        <input type="text" value="<?php echo ($fare['eveningpeaktimeoff']); ?>" name="eveningpeaktimeoff" class="form-control" placeholder="<?php echo (date('Ymd',(isset($buslicense['updatetiem']) && ($buslicense['updatetiem'] !== ""))?($buslicense['updatetiem']):time())); ?>">
                                        <label>其他运营高峰时间起：</label>
                                        <input type="text" value="<?php echo ($fare['otherpeaktimeon']); ?>" name="otherpeaktimeon" class="form-control" placeholder="<?php echo (date('Ymd',(isset($buslicense['updatetiem']) && ($buslicense['updatetiem'] !== ""))?($buslicense['updatetiem']):time())); ?>">
                                        <label>其他运营高峰时间止：</label>
                                        <input type="text" value="<?php echo ($fare['otherpeaktimeoff']); ?>" name="otherpeaktimeoff" class="form-control" placeholder="<?php echo (date('Ymd',(isset($buslicense['updatetiem']) && ($buslicense['updatetiem'] !== ""))?($buslicense['updatetiem']):time())); ?>">
                                        <label>高峰时间单程加价单价：</label>
                                        <input type="text" value="<?php echo ($fare['peakunitprice']); ?>" name="peakunitprice" class="form-control">
                                        <label>高峰时间单程加价公里：</label>
                                        <input type="text" value="<?php echo ($fare['peakpricestartmile']); ?>" name="peakpricestartmile" class="form-control">
                                        <label>低速计时加价（按分钟）：</label>
                                        <input type="text" value="<?php echo ($fare['lowspeedpriceperminute']); ?>" name="lowspeedpriceperminute" class="form-control">
                                        <label>夜间费（按公里）：</label>
                                        <input type="text" value="<?php echo ($fare['nightpricepermile']); ?>" name="nightpricepermile" class="form-control">
                                        <label>夜间费（按分钟）：</label>
                                        <input type="text" value="<?php echo ($fare['nightpriceperminute']); ?>" name="nightpriceperminute" class="form-control">
                                        <label>其他加价金额：</label>
                                        <input type="text" value="<?php echo ($fare['otherprice']); ?>" name="otherprice" class="form-control">

                                        <label>状态：</label>
                                        <select name="state" >
                                            <option value="0" <?php if($fare['state'] == '0' ): ?>selected="selected"<?php endif; ?>>正常</option>
                                            <option value="2" <?php if($fare['state'] == '1' ): ?>selected="selected"<?php endif; ?>>禁用</option>
                                        </select>
                                        <br>
                                        <label>操作标识：</label>
                                        <select name="flag" >
                                            <option value="1" <?php if($fare['flag'] == 1): ?>selected="selected"<?php endif; ?>>新增</option>
                                            <option value="2" <?php if($fare['flag'] == 2): ?>selected="selected"<?php endif; ?>>更新</option>
                                            <option value="3" <?php if($fare['flag'] == 3): ?>selected="selected"<?php endif; ?>>删除</option>
                                        </select>
                                        <br>
                                        <label>上次更新时间：</label>
                                        <input type="text" disabled="disabled" value="<?php echo ($fare['updatetime']); ?>" name="updatetime" class="form-control">
                                        <br />
                                        <button  type="button" class="btn btn-primary" onclick="fare()">修改</button>
                                    </div>
                                </form>
                            </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script src="/Public/Leader/js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="/Public/Leader/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
    function tj(){

        $.ajax({
            type: "POST",
            url: "/admin.php?s=/pay/Paysetting",

            cache: false,
            data: $('#tab').serialize(),

            success: function(data) {
                data=$.trim(data);
                switch(data){

                    case '0':
                        alert('修改成功');
                        window.location.replace("/admin.php?s=/pay/Paysetting")
                        break;
                    case '1':
                        alert('修改失败');

                        break;
                    case '3':
                        alert('用户编号已存在');

                        break;

                    default:
                        alert(data);
                }

            }




        })


    }
    function config(){

        $.ajax({
            type: "POST",
            url: "/admin.php?s=/config/getConfig",

            cache: false,
            data: $('#tab1').serialize(),

            success: function(data) {
                data=$.trim(data);
                switch(data){

                    case '0':
                        alert('修改成功');
                        window.location.replace("/admin.php?s=/pay/Paysetting")
                        break;
                    case '1':
                        alert('修改失败');

                        break;

                    default:
                        alert(data);
                }

            }




        })


    }
    function maintain(){

        $.ajax({
            type: "POST",
            url: "/admin.php?s=/config/getMaintain",

            cache: false,
            data: $('#tab2').serialize(),

            success: function(data) {
                data=$.trim(data);
                switch(data){

                    case '0':
                        alert('修改成功');
                        window.location.replace("/admin.php?s=/pay/Paysetting")
                        break;
                    case '1':
                        alert('修改失败');

                        break;
                    case '3':
                        alert('用户编号已存在');

                        break;

                    default:
                        alert(data);
                }

            }




        })


    }
    function payinfo(){

        $.ajax({
            type: "POST",
            url: "/admin.php?s=/config/getPayinfo",

            cache: false,
            data: $('#tab3').serialize(),

            success: function(data) {
                data=$.trim(data);
                switch(data){

                    case '0':
                        alert('修改成功');
                        window.location.replace("/admin.php?s=/pay/Paysetting")
                        break;
                    case '1':
                        alert('修改失败');

                        break;
                    case '3':
                        alert('用户编号已存在');

                        break;

                    default:
                        alert(data);
                }

            }




        })


    }
    function buslicense(){

        $.ajax({
            type: "POST",
            url: "/admin.php?s=/config/getBuslicense",

            cache: false,
            data: $('#tab4').serialize(),

            success: function(data) {
                data=$.trim(data);
                switch(data){

                    case '0':
                        alert('修改成功');
                        window.location.replace("/admin.php?s=/pay/Paysetting")
                        break;
                    case '1':
                        alert('修改失败');

                        break;
                    case '3':
                        alert('用户编号已存在');

                        break;

                    default:
                        alert(data);
                }

            }




        })


    }
    function seragency(){

        $.ajax({
            type: "POST",
            url: "/admin.php?s=/config/getSeragency",

            cache: false,
            data: $('#tab5').serialize(),

            success: function(data) {
                data=$.trim(data);
                switch(data){

                    case '0':
                        alert('修改成功');
                        window.location.replace("/admin.php?s=/pay/Paysetting")
                        break;
                    case '1':
                        alert('修改失败');

                        break;
                    case '3':
                        alert('用户编号已存在');

                        break;

                    default:
                        alert(data);
                }

            }




        })


    }
    function fare(){

        $.ajax({
            type: "POST",
            url: "/admin.php?s=/config/getFare",

            cache: false,
            data: $('#tab6').serialize(),

            success: function(data) {
                data=$.trim(data);
                switch(data){

                    case '0':
                        alert('修改成功');
                        window.location.replace("/admin.php?s=/pay/Paysetting")
                        break;
                    case '1':
                        alert('修改失败');

                        break;
                    case '3':
                        alert('用户编号已存在');

                        break;

                    default:
                        alert(data);
                }

            }




        })


    }
    $('.nav-tabs').on('click','.item',function(){
        var $this = $(this);
        var i = $this.index();
        if(!$this.hasClass('active')){
            $this.addClass('active').siblings().removeClass('active');
            $('.nav-container').children().eq(i).addClass('active').siblings().removeClass('active');
        }
    })
</script>


</html>